<?php

/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/18 9:28
 * Desc:会员消息
 */
abstract class Contract_Api_Member_Message
{

    /**
     * 消息列表
     * @param int $mid
     * @param array $params 筛选条件
     * @return array
     */
    abstract function list(int $mid, array $params = array()): array;


    /**
     * 设置为已读
     * @param int $mid
     * @param int $id
     * @return array
     * @throws Exception
     */
    abstract function viewed(int $mid, int $id): array;

}